PISTOL WHIP ANIMATION BY LYNX 451

I. DESCRIPTION
1.1 With this mod you will be able to perform an overhand strike using your gun, when in close-quarters combat. It does not require a CLEO script because this anim replaces one of the melee atacks performed when trying to shoot a pedestrian that is too close to you. 

Now you will be able to perform a pistol whip (if you are standing up) or the default butt-stroke (if you are crouched).

1.2 To perform this action, you need to be really close to a ped while holding any gun/rifle and press "fire".  
1.3 Bear in mind that this new anim looks better when using small arms (pistols, SMGs, sawn-off shotguns).


II. INSTALLATION (2 OPTIONS)

DISCLAIMER: CREATE A BACKUP OF YOUR FILES (ped.ifp and melee.dat), ESPECIALLY IF YOU'RE NOT FAMILIAR WITH EDITING. I AM NOT RESPONSIBLE FOR CRASHES/SCREWING SOMETHING UP IN YOUR GAME, JUST BECAUSE YOU WERE NOT FAMILIAR WITH EDITING.

2.1 Option 1 - Drop the included folder (anim) in your GTA SA/modloader directory. If you don't use modloader, replace your ped.ifp file in your GTA SA directory/anim. 

2.2 Option 2 - If you have an already modded ped.ifp (most people do) and you want to keep using it, you can export the pistol whip animation using GTA Anim manager. You only need to replace the animation "GUN_BUTT" with the one included in this file. Explained briefly, you need to:

a- Open your custom ped.ifp file using GTA Anim Manager.
b- Browse for the file included in this mod using the "Directory/Archive" tab (on the left).
c- Once you find it, right click on it and select "Open with options", then tick "Replace" (make sure the other options are not selected) and select "GUN_BUTT". Hit OK to export the new animation.
d. Save your new ped.ifp file and you are good to go. 

If you are still having doubts about combining/editing IFP files using this method, see this tutorial for a more complete explanation:
https://www.youtube.com/watch?v=35T9BsK8bCw

2.3 You can optionally replace the line "PISTOL WHIP" in data/melee.dat (using notepad) with these values for more damage.

START_COMBO	PISTOL_WHIP
	ANIMGROUP	pistlwhp
	RANGES		1.6
	#-----------hit-----chain---radius--hitlevel----damage--hit-altHit--groundLoop
	ATTACK1		7.0	99.0	0.5		L			20		2	2
	ATTACK2		7.0	99.0	0.5		L			30		2	2
	ATTACK3		99.0	99.0	0.5		H			0		1	2
	AGROUND		99.0	99.0	0.5		G			0		4	4		0.0
	AMOVING		99.0	99.0	0.5		H			0		1	2
	ABLOCK		100.0	100.0
	#----------------
	FLAGS		0x001
END_COMBO

III. CREDITS

I used a default anim from GTA SA, so credit goes to Rockstar, sort of... :D

By lynx-451